-
Notifications
You must be signed in to change notification settings - Fork 12
Release 2.0.0 #119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Release 2.0.0 #119
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…led-prop-type-undefined-in-SegmentedArc Remove .isRequired from emptyColor prop and add default value to emptyColor
…b1fecet/Failed-prop-type-undefined-in-SegmentedArc Restored .isRequired
Bumps [fast-xml-parser](https://github.com/NaturalIntelligence/fast-xml-parser) from 4.3.6 to 4.4.1. - [Release notes](https://github.com/NaturalIntelligence/fast-xml-parser/releases) - [Changelog](https://github.com/NaturalIntelligence/fast-xml-parser/blob/master/CHANGELOG.md) - [Commits](NaturalIntelligence/fast-xml-parser@v4.3.6...v4.4.1) --- updated-dependencies: - dependency-name: fast-xml-parser dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jakhongir Khusanov <[email protected]>
Bumps [serve-static](https://github.com/expressjs/serve-static) from 1.14.1 to 1.16.0. - [Release notes](https://github.com/expressjs/serve-static/releases) - [Changelog](https://github.com/expressjs/serve-static/blob/master/HISTORY.md) - [Commits](expressjs/serve-static@v1.14.1...1.16.0) --- updated-dependencies: - dependency-name: serve-static dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [cross-spawn](https://github.com/moxystudio/node-cross-spawn) from 7.0.3 to 7.0.6. - [Changelog](https://github.com/moxystudio/node-cross-spawn/blob/master/CHANGELOG.md) - [Commits](moxystudio/node-cross-spawn@v7.0.3...v7.0.6) --- updated-dependencies: - dependency-name: cross-spawn dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…rash (#114) * Handle possible invalid scale input * Show warnings about invalid segment props * Handle segments with invalid arcDegreeScale * Update Segment Arc component to use the new function * Handle the scale sum with default values to avoid NaN or Infinite values * Allow to show the same warning message for different component instance * Remove duplicated tests * Handle potential warning on floating point sum * Test ensureDefaultSegmentScaleValues * Improve test description * Rename strings to the suggested on review * Rename private functions including underscore * Move internal functions to the top and and apply undescore * Simplify math operations * Add segments test input as a local variable * Add test to prevent multiple warnings being shown on rerender * Add showWarning function * Stop using showWarningOnce on segments warnings and use showWarning * Remove unecessary showWarningOnce * Make new props more obvious * Calculate the number of invalid segments * Improve warning message to be clear the invalid value is from the segments prop * Create Data Error component * Show data error component on invalid data * Add docs about dataErrorComponent * Revert: Calculate the number of invalid segments Ensure invalid segments are returned in their original order. Default values remain unchanged. * Return all invalid segments to be able to pass to an error callback * Add onDataError callback * Move settings callbackRef.current to useEffect to respect the rules of react * Improve Data error component to have the same width of the graph to not cause any ui issue * Fix snapshot * Add style props to DataErrorRenderer * Split tests and add test to cover removal of segments * Fix spacing * Rename scale to scaleHelpers * Update test to be moremeaningful and cover JSX Element * Update comment * Update README with suggested values * Add it * Throw an error if dataErrorComponent is not null, jsx element or undefined * Return null if invalid props is passed to the data error component * Change again
…rrectly (#116) * fix * chore(test) - Update snapshots
* Handle possible invalid scale input * Show warnings about invalid segment props * Handle segments with invalid arcDegreeScale * Update Segment Arc component to use the new function * Handle the scale sum with default values to avoid NaN or Infinite values * Allow to show the same warning message for different component instance * Remove duplicated tests * Handle potential warning on floating point sum * Test ensureDefaultSegmentScaleValues * Improve test description * Rename strings to the suggested on review * Rename private functions including underscore * Move internal functions to the top and and apply undescore * Simplify math operations * Add segments test input as a local variable * Add test to prevent multiple warnings being shown on rerender * Add showWarning function * Stop using showWarningOnce on segments warnings and use showWarning * Remove unecessary showWarningOnce * Make new props more obvious * Calculate the number of invalid segments * Improve warning message to be clear the invalid value is from the segments prop * Create Data Error component * Show data error component on invalid data * Add docs about dataErrorComponent * Revert: Calculate the number of invalid segments Ensure invalid segments are returned in their original order. Default values remain unchanged. * Return all invalid segments to be able to pass to an error callback * Add onDataError callback * Move settings callbackRef.current to useEffect to respect the rules of react * Improve Data error component to have the same width of the graph to not cause any ui issue * Fix snapshot * Add style props to DataErrorRenderer * Split tests and add test to cover removal of segments * Fix spacing * Rename scale to scaleHelpers * Update test to be moremeaningful and cover JSX Element * Update comment * Update README with suggested values * Add it * Throw an error if dataErrorComponent is not null, jsx element or undefined * Return null if invalid props is passed to the data error component * Change again * Parse any numeric props in a safer way and set the default value if NaN * Revert "Remove unecessary showWarningOnce" This reverts commit 6fa53ae. * Remove unecessary warnId * Remove unecessary variable * Add clearAllWarnings to afterEach to isolate tests * Do not parse variables not used in math operations * Revert "Revert "Remove unecessary showWarningOnce"" This reverts commit 392e81b. * Handle errors for invalid numeric props * Rename hook to useDataErrorCallback * Do not allow Infinity because it also causes a crash * Add test to be sure nobody will forget to pass the dependency to useMemo * Remove SegmentedArcBase * Improve tests * rename private functions * Update test description * Remove unecessary handling for undefined propertyName --------- Co-authored-by: Jakhongir Khusanov <[email protected]>
* Upgrade RN version to 0.78" * format with prettier * remove test
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
BREAKING CHANGES
NaN,Infinity, or-Infinity) numeric props were passed to the component by overriding them with default valuesdataErrorComponentproponDataErrorprop that accepts a callback functionFixes component height when
arcDegreeprop is higher than 180 degreesUpdate example project to latest React Native version 0.78